To cancel an action before completing it
Press the ESC key.
If you are drawing a line but decide you don't want to draw it after all, press ESC. If you are moving an object but decide to cancel the move, press ESC and the object returns to its original position.
Related Topics
Canceling and Redoing an Action